<?php
function test1(){
    echo 1;
}
class test{
    function a(){
        test1();
    }
}

$test=new test();
$test->a();